---
title: clsDCBSCostChargeList
summary: API reference for clsDCBSCostChargeList.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-21
library: SAIF.Business.View.Provider
reference_type: embedded
---

# clsDCBSCostChargeList

`clsDCBSCostChargeList` is a self-loading `List(Of clsDCBSCostCharge)` that queries `PROVIDER_DCBS_COST_CHARGE` directly through `SqlHelper.ResultSetQuery` in its constructor, bypassing the BOF portal/criteria pattern entirely. It is one of five "direct-query style" types in this library (alongside `clsMCOProviderList`, `clsProviderServiceList`, `clsProviderServiceContractList`, and `clsProviderSearch`) and backs `clsProviderLocation.DCBSCostCharges`.

## Purpose
- Loads all DCBS cost-to-charge factors for a specific provider location in one direct SQL execution, without going through the criteria/portal lifecycle used elsewhere in this library.
- Provides the source data for cost-to-charge conversion lookups consumed by claim/legal cost calculations downstream.*

## Context
- Namespace: `SAIF.Business.View.Provider`
- Assembly/package: `SAIF.Business.View.Provider` (embedded/project-compiled); also distributed as the NuGet package `SAIF.BOF.Business.View.Provider`.

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `.ctor` | `Friend Sub New(dpi As IDataPortalInfo, providerLocationID As Decimal)` | Builds and executes the direct SQL query (bound `:ProviderLocationID`) against `PROVIDER_DCBS_COST_CHARGE` and populates the list from the result set (OP-10, SQL-DCBS-01). |
| `Item` | `Default Property Item(index As Integer) As clsDCBSCostCharge` (from `List(Of clsDCBSCostCharge)`) | Returns the cost-charge factor at the given position in the loaded list. |
| `Count` | `ReadOnly Property Count As Integer` (from `List(Of clsDCBSCostCharge)`) | Number of cost-charge factors loaded for the location. |
| `GetEnumerator` | `Function GetEnumerator() As List(Of clsDCBSCostCharge).Enumerator` (from `List(Of clsDCBSCostCharge)`) | Enumerates the loaded cost-charge factors in query result order. |

## Behavioral notes
- OP-10: builds SQL with a `Text.StringBuilder`, executes via `SqlHelper.ResultSetQuery("Get Provider Cost Charges")`, and constructs one `clsDCBSCostCharge` per returned row.
- The constructor is `Friend`-scoped, so this list can only be constructed from within the assembly — `clsProviderLocation.DCBSCostCharges` is the public entry point for consumers.*

## Constraints and usage notes
- Cannot be constructed directly by external consumers due to the `Friend` constructor; always obtained via `clsProviderLocation.DCBSCostCharges`.
- Like all direct-query types in this library, it performs no create/update/delete operations — it is a load-only list.

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- SAIF.Business.View.Provider/clsDCBSCostCharge.vb
